<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.beans.log.*" %>
<%@ page import="com.business.log.*" %>
<%	
if(session.getAttribute("login_user")==null) {
		Cookie[] cookies=request.getCookies();
		if(cookies!=null){
		for(int i=0;i<cookies.length;i++) {
		if(cookies[i].getName().equals("loginuser@sgblog.com")) {
			session.setAttribute("login_user",cookies[i].getValue());
						}
		if(cookies[i].getName().equals("loginuserpwd@sgblog.com")) {
			session.setAttribute("password",cookies[i].getValue());
						}
				}
			}
		}
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";

	%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>SGblog博客首页</title>
<base href="<%=basePath%>">
<meta name="robots content="all" />
<meta content="jipinceo@163.com,sgwood,星之金币" name="author" />
<meta content="SGblog CopyRight 2007" name="Copyright" />
<meta content="Blog,JSP,SGblog,web,standards,xhtml,css,layout,w3c" name="keywords" />
<meta  name="description"content="SGblog - 做最好的博客系统" />
<LINK 
media=all href="mainfile/dlog.css" type=text/css rel=stylesheet>
<LINK media=all href="mainfile/dlogcn.css" type=text/css rel=stylesheet>
<LINK media=all href="mainfile/global.css" type=text/css rel=stylesheet>
<SCRIPT src="mainfile/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="mainfile/prototype.js" type=text/javascript></SCRIPT>
</head>

<BODY>
<DIV id=dlog_home>
<DIV id=channel_bar><font color=red>欢迎您进入的是SGblog多用户主页，由于正在制作中部分功能还未实现(一些数据暂时用于测试)，请访问下面链接所提供的测试博客以对本系统进行测试！</font></DIV>
<DIV class=spacer_10></DIV>
<DIV id=date_tip_bar><%if(session.getAttribute("login_user")!=null){%><a href="blog/<%=(String)session.getAttribute("login_user")%>">欢迎<%=(String)session.getAttribute("login_user")%>,进入您的博客</a><%}else{ %><A href="user/login.jsp">[登录]</A><A 
href="user/register.jsp">[注册新用户]</A> <%}%>今天是：<%=new Date().toLocaleString()%></DIV>
<DIV id=reg_site_bar><A href="blog/sgwood">进入sgblog测试博客</A> </DIV>
<DIV class=spacer_10></DIV>
<DIV>
<DIV class=left_panels>
<DIV class=panel>
<DIV class=panel_head>
<DIV>
<DIV class=fleft>头条推荐</DIV>
<DIV class=fright> </DIV>
</DIV>
<DIV class=spacer_1></DIV></DIV>
<DIV class=panel_top>
<%
 	LogListBus llb=new LogListBus();
	LogInfo liA=llb.getQuoteLog();
%><A 
href="log/temp/<%=liA.getLogNo()%>.html"><%=liA.getLogTitle()%>
</A></DIV>
<DIV class=panel_top_body><%=liA.getLogIntro()%>... </DIV>
<DIV class=spacer_5></DIV>
<DIV class=line_dashed></DIV>
<DIV class=panel_body>
<%
	List list=llb.getAllQuoteLog();
	 for(int i=0;i<list.size();i++){
	 LogInfo li=(LogInfo)list.get(i);
%>
<IMG src="mainfile/arrow.gif" 
align=absMiddle border=0> <A 
href="log/temp/<%=li.getLogNo()%>.html"><%=li.getLogTitle()%></A>&nbsp;&nbsp; 
[<A href="blog/<%=li.getLogAuthor()%>"><%=li.getLogAuthor()%></A>]<BR>
<%
}
%>
</DIV></DIV>
<DIV class=spacer_5></DIV>
<DIV class=show>
<DIV class=show_body>
<DIV class="js fleft">

  <script type="text/javascript"> 
<!-- 
var focus_width=380
 //图片框的宽度 
var focus_height=240 //图片框的高度 
var text_height=24 //文字的高度 
var swf_height = focus_height+text_height //flash的高度 
var pics='11.jpg|12.jpg|15.jpg'//图片文件的的地址，以“|”为分界 
var links= 'photo/temp/20070422081556.html|photo/temp/20070422081556.html|photo/temp/20070422081556.html'//文字连接的地址，以“|”分界，注意，这个变量是空的时候，就是没有连接哦 
var texts='湖大校花（假的）|超级女生张含韵|《东吴封面》-中国最勾魂十景' //连接文字 

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">'); 
document.write('<param name="allowscriptAccess" value="sameDomain"><param name="movie" value="pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">'); 
document.write('<param name="menu" value="false"><param name=wmode value="opaque">'); 
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">'); 
document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowscriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); 

//--> 
</script>

</DIV>
</DIV></DIV>
<DIV class=spacer_5></DIV>
<DIV class=panel>
<DIV class=panel_head>最新日志 Top10</DIV>
<DIV class=panel_top>
<%
 		LogInfo newli=llb.getNewLog();
%><A 
href="log/temp/<%=newli.getLogNo()%>.html"><%=newli.getLogTitle()%> 
</A></DIV>
<DIV class=panel_top_body><%=newli.getLogIntro()%>... </DIV>
<DIV class=spacer_5></DIV>
<DIV class=line_dashed></DIV>
<DIV class=panel_body><%
	List list2=llb.getAllNewLog();
	 for(int i=0;i<list2.size();i++){
	 LogInfo li=(LogInfo)list2.get(i);
%>
<IMG src="mainfile/arrow.gif" 
align=absMiddle border=0> <A 
href="log/temp/<%=li.getLogNo()%>.html"><%=li.getLogTitle()%></A>&nbsp;&nbsp; 
[<A href="blog/<%=li.getLogAuthor()%>"><%=li.getLogAuthor()%></A>]<BR>
<%
}
%></DIV></DIV>
<DIV class=spacer_5></DIV>
</DIV></DIV>
<DIV class=right_panels>
<DIV class=panel>
<DIV class=panel_head>本周博客人气榜(top10)</DIV>
<DIV class=panel_body>
<TABLE cellSpacing=2 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD  class=photo_box2><a href="blog/sgwood">星星的金币的博客</a>&nbsp;&nbsp;人气：2131</TD>
   
  </TR>
  <TR>
     <TD  class=photo_box2><a href="blog/jiljil">JILJIL的博客</a>&nbsp;&nbsp;人气：2028</TD>
  </TR>
  <TR>
    <TD  class=photo_box1><a href="blog/jipinceo">jipinceo的博客</a>&nbsp;&nbsp;人气：1200</TD>
  </TR></TBODY></TABLE>
</DIV></DIV>
<DIV class=spacer_5></DIV>
<DIV class=panel>
<DIV class=panel_head>系统公告</DIV>
<DIV class=panel_body><A href="#ximihua">西米花</A>&nbsp; <A 
href="#huanghuang">晃晃悠悠</A>&nbsp; <A 
href="#fms1">王子哥儿们来了</A>&nbsp; <A 
href="#shirley">爱上提拉米苏</A>&nbsp; <A 
href="#kbfox">狼窩</A>&nbsp; <A 
href="#luomafeelings">罗马情感驿站</A>&nbsp; <A 
href="#huihuiwt">小考拉的桉树林</A>&nbsp; <A 
href="#seraph">堕落天使</A>&nbsp; <A 
href="#javayou">Java自由人</A>&nbsp; <A 
href="#freejor">龙稚</A>&nbsp; <A 
href="#zhangkc">好来屋</A>&nbsp; <A 
href="#ddv">粉刷匠的魔鬼空间</A>&nbsp; <A 
href="#superspace">风之谷</A>&nbsp; <A 
href="#jing">敬是如此&nbsp;&nbsp;</A>&nbsp; <A 
href="#auto">车行天下</A>&nbsp; <A 
href="#zbgrwy">张彬个人网页</A>&nbsp; <A 
href="#newpic">色即是空&nbsp;|&nbsp;色狼网</A>&nbsp; <A 
href="#xgwj">希哥网记</A>&nbsp; <A 
href="#cony">彩虹云</A>&nbsp; <A 
href="#benbenming">笨笨明</A>&nbsp; </DIV></DIV>
<DIV class=spacer_5></DIV>
<DIV class=panel>
<DIV class=panel_head>帮助信息</DIV>
<DIV class=panel_body><A 
href="#773">一家人</A>&nbsp; <A 
href="#20">郦人舞步</A>&nbsp; <A 
href="#23">狼窩</A>&nbsp; <A 
href="#565">半人间</A>&nbsp; <A 
href="#1556">深海之蓝</A>&nbsp; <A 
href="#166">Ron＆Max</A>&nbsp; <A 
href="#547">别情</A>&nbsp; <A 
href="#1053">张彬个人网页</A>&nbsp; <A 
href="#21">冬日里的一缕阳光</A>&nbsp; <A 
href="#946">芒果悠悠</A>&nbsp; <A 
href="#752">復活々怒莫</A>&nbsp; <A 
href="#1129">龙稚</A>&nbsp; <A 
href="#121">最近我总在ＺＴ</A>&nbsp; <A 
href="#3">女博士</A>&nbsp; <A 
href="#218">一头愤怒的牛</A>&nbsp; <A 
href="#406">随风而逝</A>&nbsp; <A 
href="#399">皖↘溡緔●</A>&nbsp; <A 
href="#2">Java自由人</A>&nbsp; <A 
href="#1056">╄萍水相逢ζ</A>&nbsp; <A 
href="#418">你呀你</A>&nbsp; </DIV></DIV>
<DIV class=spacer_5></DIV>
<DIV class=spacer_5></DIV>
<DIV class=ad><A href="#" target=_blank></A></DIV>
<DIV class=spacer_5></DIV>
</DIV></DIV>
<DIV class=spacer_10></DIV>
<DIV class=line_solid></DIV>
<DIV id=footer_bar>
<DIV><A href="http://www.sgwood.com.cn">关于博客</A>&nbsp;&nbsp;|&nbsp;&nbsp; <A 
href="#">服务条款</A>&nbsp;&nbsp;|&nbsp;&nbsp; <A 
href="#">隐私权政策</A>&nbsp;&nbsp;|&nbsp;&nbsp; <A 
href="#">友情链接</A>&nbsp;&nbsp;|&nbsp;&nbsp; <A 
href="mailto:webmaster@sgwood.com.cn">联系我们</A>&nbsp;&nbsp;|&nbsp;&nbsp; <A 
href="http://www.sgwood.com.cn">Powered by SGblog v2.0 </A> </DIV>
<DIV></DIV>
<DIV align=center><A 
href="#"></A> </DIV>
</DIV></DIV></BODY></HTML>
